package com.time;

import cn.hutool.core.date.StopWatch;

/**
 * @author keyer
 * @Description : Created by cyd on 2021-04-16 16:28:55
 */
public class TestStopWatch {
    public static void main(String[] args) throws InterruptedException {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        Thread.sleep(2000);
        stopWatch.stop();
        System.out.println(stopWatch.getTotalTimeSeconds());
    }
}
